/**
 * linux(ubuntu8.04),g++4.3.2
 * 1/3/2009,Thss,THU,BJ
 * Author : Xinlai,Lu
 */

namespace visualization
{

template<class Type>
void setSquareMat(Type *mat, unsigned int elemOneColumn, int row, int col, double real, double imag = 0)
{
	mat[col * elemOneColumn + row].r = real;
	mat[col * elemOneColumn + row].i = imag;
}

template<class Type>
void getSquareMat(Type *mat, unsigned int elemOneColumn, int row, int col, double &real, double &imag)
{
	real = mat[col * elemOneColumn + row].r;
	imag = mat[col * elemOneColumn + row].i;
}

}
